package com.sciencep.pro.core.dao;

import com.sciencep.pro.core.domain.dto.dropdown.RoleGroupTO;
import com.sciencep.pro.core.domain.dto.dropdown.RoleSelectVO;
import com.sciencep.pro.core.domain.dto.role.RoleTO;
import com.sciencep.pro.core.domain.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Sciencep
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> getRoleGroupList();

    List<Role> getRoleNameByGroupId(@Param("role") Role role);

    List<RoleSelectVO> getRoleSelectVOByGroupId(String groupId);

    List<RoleTO> getRoleList(@Param("role") Role role);

    List<RoleGroupTO> getRoleGroupTO();

    List<Role> getRoleByUserId(String userId);

    void delGroup(String groupId);

    void delRole(String roleId);
}
